//
//  Leaf.h
//  SSE
//
//  Created by Matt Roman on 10/30/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "node.h"

#ifndef MFUNS_H
#define MFUNS_H
#include "Mfuns.h"
#endif


@interface Leaf : node {
	Point3f			vertex;
	double			direction;
	Leaf			*parentLeaf;
	NSMutableArray	*LfArray;
} 

- (id)initLeafWithPoint:(Point3f)pt ID:(int)num;
- (void) setPoint:(Point3f)pt;
- (Point3f) getPoint;
- (Point3f *) getPtrPoint;
- (void) addLeafWithID:(int)num Point:(Point3f)pt VertexNumber:(int)vtn Distance:(double)d Direction:(double)dir Parent:(Leaf *)lf;
- (NSMutableArray *) getLfArray;
- (double) direction;
- (Leaf *) parentLeaf;
- (void) setDirection:(double)d;
- (void) setParentLeaf:(Leaf *)lf;
- (NSComparisonResult) compareAngle:(Leaf *)aLeaf;
- (void) dealloc;
@end
